using AutofacAopDemo.WebApi.Services;
using Microsoft.AspNetCore.Mvc;

namespace AutofacAopDemo.WebApi.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class OrderController : ControllerBase
    {
        private readonly IOrderService _orderService;

        public OrderController(IOrderService orderService)
        {
            _orderService = orderService;
        }

        [HttpGet]
        public int Get()
        {
            return _orderService.GetOrderId();
        }
    }
}